#!/bin/bash

#read -p "please input a any number:" u_num
#read -p "please input a percentage number:" u_per

echo -n -e "\e[35m please input a any number:\e[0m";read u_num
echo -n -e "\e[35m please input a percentage number:\e[0m";read u_per
result=`echo "scale=2;${u_per}/100*${u_num}" |bc`
echo -e "\e[32m ${u_num} is ${u_per}%\e[0m:\e[31m${result}\e[0m"
